@import 'antd/dist/antd.less';

/** 公共样式 **/
@import "normalize.css";
@import './common/transition.less';
@import './var.less';


/* 全局配置 */

* {
  -webkit-overflow-scrolling: touch; /* 允许独立滚动区域，解决IOS上的非body元素滚动条滚动时卡顿 */
  -webkit-tap-highlight-color: transparent; /* 覆盖IOS上用户点击连接时的默认高亮颜色 */
  outline: none;
}

html {
  height: 100%;
  box-sizing: border-box;
}

body {
  height: 100%;
  margin: 0;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB,
    Microsoft YaHei, Arial, sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu',
    'Cantarell', 'Fira Sans', 'Droid Sans';
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

/* 禁止换行,末尾省略 */
.all_nowarp {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 强制换行 */
.all_warp {
  word-break: break-all;
  word-wrap: break-word;
}

.all_center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 美化滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
  background-color: transparent;
}

/* 定义滑块 内阴影+圆角 */
::-webkit-scrollbar-thumb {
  background-color: #333;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace;
}

.layout {
  &__loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
  }
}

.align {
  &--between {
    display: flex;
    justify-content: space-between;
  }

  &--left {
    display: flex;
  }

  &--right {
    display: flex;
    justify-content: flex-end;
  }

  &--around {
    display: flex;
    justify-content: space-around;
  }
}

.vertical {
  &--top {
    display: flex;
  }

  &-middle {
    display: flex;
    align-items: center;
  }

  &-bottom {
    display: flex;
    align-items: flex-end;
  }
}
